Invalidate region caches only if buffer text is going to be changed.
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 6 Aug 2013 05:30:18 +0000 (09:30 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Tue, 6 Aug 2013 05:30:18 +0000 (09:30 +0400)
commit353d4a36b9c6ae0423759a529dae18d850b4832c
tree2d917177a9a510fcc41efa4b8e05fb6ee46d9c0d
parent50b662a0460e9612f4b85ba8cb2f299d34f78fd6
Invalidate region caches only if buffer text is going to be changed.
* lisp.h (modify_region_1): Remove 3rd arg and rename to...
(modify_text): ...new prototype.
(prepare_to_modify_buffer_1): New prototype.
* textprop.c (modify_region): Rename to...
(modify_text_properties): ...new function.
(add_text_properties_1, set_text_properties, Fremove_text_properties)
(Fremove_list_of_text_properties): Adjust users.
* insdel.c (modify_region_1): Remove 3rd arg and reimplement as...
(modify_text): ...new function.
(prepare_to_modify_buffer): Reimplement mostly as a wrapper for...
(prepare_to_modify_buffer_1): ...new function.
* casefiddle.c (casify_region):
* editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
(Ftranspose_regions): Use modify_text.
src/ChangeLog
src/casefiddle.c
src/editfns.c
src/insdel.c
src/lisp.h
src/textprop.c